﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Ys.Base.Common
{
    /// <summary>
    /// long数据拓展
    /// </summary>
  public static  class DoubleExtension
    {
        /// <summary>
        /// 返回指定位数的数值
        /// </summary>
        /// <param name="Value"></param>
        /// <param name="decimals"></param>
        /// <returns></returns>
        public static double Round(this double Value,int decimals=2)
        {
           return Math.Round(Value, decimals);

        }
      
    }
}
